package cn.sunagy.security.maz.auth.server.module.client.mapper;

import cn.sunagy.security.maz.auth.server.module.client.entity.Client;
import cn.sunagy.security.maz.common.mapper.CommonMapper;

import java.util.List;

/**
 * @desc：#TODO fill me ！
 * @author：三餘無夢生
 * @date：2018/6/2
 * @time：下午4:25
 */
public interface ClientMapper extends CommonMapper<Client> {
    //    @Select(" SELECT\n" +
//            "        client.CODE\n" +
//            "      FROM\n" +
//            "          auth_client client\n" +
//            "      INNER JOIN auth_client_service gcs ON gcs.client_id = client.id\n" +
//            "    WHERE\n" +
//            "        gcs.service_id = #{serviceId}")
//    @ResultType(String.class)
    List<String> selectAllowedClient(String serviceId);

    List<Client> selectAuthorityServiceInfo(String clientId);
}

